package com.mimiwang.chat.dao;

import com.mimiwang.chat.entity.Talk;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2022/10/6 21:22
 */

@Repository
@Mapper
public interface TalkDao {

    int insertOne(Talk talk);
    Talk selectNewestOne(long sender,long  receiver);
    List<Talk> selectAll(long  sender, long  receiver);
    int deleteAll(int sender,int receiver);
    int deleteNewestOne(int sender, int receiver);
}
